<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>子系统管理</title>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="keywords" content="" />
	<meta http-equiv="description" content="" />
	<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/js/easyui/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="${ctx}/js/easyui/themes/icon.css"/>
	<script type="text/javascript" src="${ctx}/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="${ctx}/js/jquery.validate.js"></script>
	<script type="text/javascript" src="${ctx}/js/jquery.metadata.js"></script>
	<script type="text/javascript" src="${ctx}/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$("tr.beover").mouseover(function() {
				$(this).addClass("over");
			}).mouseout(function() {
				$(this).removeClass("over");
			});
		});
	</script>
  </head>
  <body>
  		<div>
  			<div class="titlediv">您所在的位置：子系统管理->子系统列表</div>
  			<div class="add_div_margin"><a href="${ctx}/app/app.do?action=input" class="easyui-linkbutton" iconCls="icon-add">添加子系统</a></div>
  			<div>
  				<div>
  					<div class="pagediv">结果列表</div>
  					<div>
  					<table cellpadding="0" cellspacing="0" border="0" class="querytab">
			    		<tr class="font_bold">
			    			<td>序号</td>
			    			<td>编码</td>
			    			<td>子系统名</td>
			    			<td>url</td>
			    			<td>token</td>
			    			<td>secret</td>
                            <td>是否启用动态密码</td>
			    			<td colspan="3">操作</td>
			    		</tr>
			    		<s:iterator value="apps" status="index">
						<tr class="beover">
			    			<td>${index.count}</td>
			    			<td>${id}</td>
			    			<td><a href="${ctx}/app/app.do?action=view&app.id=${id}">${name}</a></td>
			    			<td>${url}</td>
			    			<td>${token}</td>
			    			<td>${secret}</td>
                            <td>${otpFlag.name}</td>
			    			<td><a href="${ctx}/app/app.do?action=input&app.id=${id}">修改</a></td>
			    			<td><a href="${ctx}/app/app.do?action=updateSecret&app.id=${id}" onclick="return confirm('确实要更新密钥吗？');">更新密钥</a></td>
			    			<td><a href="${ctx}/app/app.do?action=del&app.id=${id}" onclick="return confirm('确实要删除吗？');">删除</a></td>
			    		</tr>
			    		</s:iterator>
			    	</table>
			    	</div>
			    	<div class="pagediv"><center>${pageString}</center></div>
  				</div>
  			</div>
  		</div>
  </body>
</html>
